package com.zr.service.sys.impl

import com.zr.mapper.sys.RoleMapper
import com.zr.service.sys.RoleServer
import com.zr.vo.sys.Role
import org.springframework.stereotype.Service
import javax.annotation.Resource

@Service
class RoleServerImpl: RoleServer {

    @Resource
    val roleMapper:RoleMapper?=null
    override fun selectList(): List<Role>? {
        return roleMapper?.selectList()
    }

    override fun selectRoleListByUserId(userId: String?): MutableList<Role> {
        return roleMapper?.selectRoleListByUserId(userId) as MutableList<Role>
    }
}